package com.hyhy.hycloud.uaa.security.exception;

import com.hyhy.hycloud.uaa.UaaErrorDescribable;
import com.hyhy.hycloud.uaa.UaaErrorType;
import org.springframework.security.core.AuthenticationException;

/**
 * 手机号绑定异常
 *
 * @author wangyue
 * @version V1.0.0
 * @date 2018/11/19 7:20 PM
 */
public class MobileBindedException extends AuthenticationException implements UaaErrorDescribable {
    public MobileBindedException() {
        super(UaaErrorType.MOBILE_BINDED_ERROR.getMessage());
    }

    public MobileBindedException(String msg) {
        super(msg);
    }

    public MobileBindedException(String msg, Throwable t) {
        super(msg, t);
    }

    @Override
    public UaaErrorType getErrorType() {
        return UaaErrorType.MOBILE_BINDED_ERROR;
    }
}
